<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

require_once $_SERVER['DOCUMENT_ROOT'] . "/SistemaWeb/model/loginModel.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/SistemaWeb/dao/loginDAO.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/SistemaWeb/interface/interfaceController.php";

/**
 * Description of loginController
 *
 * @author Santos
 */
class loginController implements interfaceController {

    public function deleteDados($model) {
        $dao = new loginDAO();
        return $dao->deleteDados($model);
    }

    public function getDados($model) {
        $dao = new loginDAO();
        return $dao->getDados($model);
    }

    public function getModel() {
        return new loginModel();
    }

    public function setDados($model) {
        $dao = new loginDAO();
        return $dao->setDados($model);
    }

}
